/**
 * @(#)GroupBy 15/1/14 Copyright (c) 2015 hujiang Co.Ltd. All right reserved.
 */
package com.jeff.utils.sqlite;

/**
 * author：duff
 * version：1.0.0
 * date：2017/9/1
 * desc：
 */
public class GroupBy {

    private String[] mColumns;

    public GroupBy(String... columns) {
        mColumns = columns;
    }

    @Override
    public String toString() {
        if (mColumns == null || mColumns.length == 0) {
            return null;
        }
        StringBuilder stringBuilder = new StringBuilder("");
        for (int i = 0; i < mColumns.length; i++) {
            stringBuilder.append(mColumns[i]);
            if (i < mColumns.length - 1) {
                stringBuilder.append(",");
            }
        }
        return stringBuilder.toString();
    }

}
